package com.kuwou.workobject.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kuwou.workobject.pojo.entity.SingerBasicInfo;
import com.kuwou.workobject.pojo.vo.SingerBasicInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SingerBasicInfoMapper extends BaseMapper<SingerBasicInfo> {

    /**
     * 清空表
     */
    @Select("TRUNCATE TABLE kuwou.`singer_basic_info`")
    void truncateTable();

    List<SingerBasicInfoVo> getBasicInfo(@Param("singerName") String singerName);
}
